export const request = (options) => {
	return new Promise((resolve, reject) => {
		uni.request({
			url: options.url,
			method: options.method || 'post',  //post get
			header: {
				"Content-Type": "application/json",
			},
			data: options.data || {},
			success(res) {
				resolve(res);
			},
			fail(err) {
				reject(err)
			}
		})
	})
}